package com.settlement.system.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.settlement.system.common.base.BaseEntity;
import com.settlement.system.common.enums.FeeBackEnum;
import com.settlement.system.common.enums.UserReadEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 用户需求表
 * </p>
 *
 * @author huangrensen
 * @since 2023-12-28
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysDemand extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    /**
     * 用户ID
     */
    private Long userId;
    /**
     * 手机号码
     */
    private String mobile;


    /**
     * 需求内容
     */
    private String content;


    /**
     * 文件名称
     */
    private String fileName;


    /**
     * 文件路径
     */
    private String filePath;


    /**
     * 处理状态
     */
    private Integer status = FeeBackEnum.N.getValue();
    @TableField(exist = false)
    private String statusName;


    /**
     * 处理结果
     */
    private String result;


    /**
     * 用户是否已读（0：未读，1：已读）
     */
    private Integer userRead = UserReadEnum.N.getValue();
    @TableField(exist = false)
    private String userReadName;
}
